﻿using Talk.Extensions;
using ConfigurationManager = Talk.Extensions.ConfigurationManager;

namespace XJay.Identity.Common.Helper
{

    public static class AppConfig
    {
        private static string dbProviderName;
        private static string connectionString;
        public static string DbProviderName 
        {
            get
            {
                if (dbProviderName == null)
                {
                    dbProviderName = ConfigurationManager.GetTryConfig("Quartz:dbProviderName");
                }
                return dbProviderName;
            }
        }
        public static string ConnectionString
        {
            get
            {
                if(connectionString==null)
                {
                    connectionString = ConfigurationManager.GetTryConfig("Quartz:connectionString");
                }
                return connectionString;
            }
        }

    }
}
